//
//  DFXXXQViewController.m
//  firstpoint
//
//  Created by 泽中 on 2017/7/19.
//  Copyright © 2017年 xzcysoft. All rights reserved.
//

#import "DFXXXQViewController.h"
#import "BinDingTextView.h"

@interface DFXXXQViewController ()

@end

@implementation DFXXXQViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title=@"代付信息";
    self.view.backgroundColor=LRRGBColor(235, 240, 242);
    [self setdibuButton];
    [self setUI];
}
-(void)setUI
{
    UIScrollView*scrollView=[[UIScrollView alloc]initWithFrame:CGRectMake(0, 64, width_screen, height_screen-164)];
    scrollView.backgroundColor=LRRGBColor(235, 240, 242);
    [self.view addSubview:scrollView];
    //人物
    UIView*daifurenView=[[UIView alloc]initWithFrame:CGRectMake(0, 10, width_screen, 75)];
    daifurenView.backgroundColor=[UIColor whiteColor];
    [scrollView addSubview:daifurenView];
    
    UIImageView*imgView=[UIImageView new];
    imgView.frame=CGRectMake(10, 13.5, 50, 50);
    imgView.layer.cornerRadius=25;
    imgView.backgroundColor=[UIColor redColor];
    [daifurenView addSubview:imgView];
    
   UILabel* nameLab=[[UILabel alloc]initWithFrame:CGRectMake(70, 20, width_screen-80, 20)];
    nameLab.text=@"王旭阳";
    nameLab.font=[UIFont systemFontOfSize:15];
    [daifurenView addSubview:nameLab];
   
   UILabel* shenqingLab=[[UILabel alloc]initWithFrame:CGRectMake(70, 40, 100, 15)];
    shenqingLab.textColor=LRRGBColor(215, 25, 36);
    shenqingLab.font=[UIFont systemFontOfSize:13];
    shenqingLab.text=@"申请代付";
    
    [daifurenView addSubview:shenqingLab];
    
    UILabel*jindouLab=[[UILabel alloc]initWithFrame:CGRectMake(width_screen/2, 0, width_screen/2-20, 75)];
    jindouLab.textColor=[UIColor orangeColor];
    jindouLab.font=[UIFont systemFontOfSize:25];
    jindouLab.textAlignment=2;
    jindouLab.text=@"182金豆";
    [daifurenView addSubview:jindouLab];
    // 申请人
    BinDingTextView*shenqingrenView=[[BinDingTextView alloc]initWithFrame:CGRectMake(0, 95, width_screen, 45)];
    shenqingrenView.textField.placeholder=@"乐小天";
    shenqingrenView.titleLab.text=@"申请人";
    shenqingrenView.textField.userInteractionEnabled=NO;
    [scrollView addSubview:shenqingrenView];
    //电话
    BinDingTextView*phoneView=[[BinDingTextView alloc]initWithFrame:CGRectMake(0, 141, width_screen, 45)];
    phoneView.textField.placeholder=@"121212122112";
    phoneView.titleLab.text=@"电话";
    phoneView.textField.userInteractionEnabled=NO;
    [scrollView addSubview:phoneView];
    //商品说明
    UIView*shangpinView=[UIView new];
    shangpinView.backgroundColor=[UIColor whiteColor];
    [scrollView addSubview:shangpinView];

    UILabel*shangpinLab=[[UILabel alloc]initWithFrame:CGRectMake(10, 15, 100, 13)];
    shangpinLab.text=@"商品说明";
    shangpinLab.font=[UIFont systemFontOfSize:13];
    [shangpinView addSubview:shangpinLab];
    
    UILabel*shuomingInfo=[[UILabel alloc]initWithFrame:CGRectMake(10, 40, width_screen-30, 13)];
    shuomingInfo.numberOfLines=0;
    shuomingInfo.font=[UIFont systemFontOfSize:13];
     shuomingInfo.text = @"发附件发附件发";
    CGSize titleSize = [shuomingInfo.text sizeWithFont:[UIFont systemFontOfSize:13.0f] constrainedToSize:CGSizeMake(width_screen-20, 200)];
    shuomingInfo.frame = CGRectMake(10, 40, titleSize.width, titleSize.height);
    shangpinView.frame=CGRectMake(0, 187, width_screen, titleSize.height+50);
    [shangpinView addSubview:shuomingInfo];
    //创建时间
    BinDingTextView*timeView=[[BinDingTextView alloc]initWithFrame:CGRectMake(0, shangpinView.bounds.size.height+shangpinView.frame.origin.y+10, width_screen, 45)];
    timeView.textField.placeholder=@"2017-2-2";
    timeView.titleLab.text=@"创建时间";
    timeView.textField.userInteractionEnabled=NO;
    [scrollView addSubview:timeView];
    //订单号
    BinDingTextView*dingdanhaoView=[[BinDingTextView alloc]initWithFrame:CGRectMake(0, timeView.bounds.size.height+timeView.frame.origin.y, width_screen, 45)];
    dingdanhaoView.textField.placeholder=@"456456566";
    dingdanhaoView.titleLab.text=@"订单号";
    dingdanhaoView.textField.userInteractionEnabled=NO;
    [scrollView addSubview:dingdanhaoView];
   //滑动视图 大小
    scrollView.contentSize=CGSizeMake(width_screen, dingdanhaoView.frame.origin.y+dingdanhaoView.bounds.size.height);
}
-(void)setdibuButton
{
    UIView*view=[[UIView alloc]initWithFrame:CGRectMake(0, height_screen-100, width_screen, 50)];
    view.backgroundColor=LRRGBColor(251, 244, 228);
    [self.view addSubview:view];
    UIImageView*imgView=[[UIImageView alloc]initWithFrame:CGRectMake(10, 10, 15, 15)];
    imgView.image=[UIImage imageNamed:@"gwcybz"];
    [view  addSubview:imgView];
    UILabel*lab=[[UILabel alloc]initWithFrame:CGRectMake(35, 0, width_screen-45, 50)];
    lab.text=@"请先电话或当面合适申请人身份后再付款,代付商品或服务不归您所有。产生的退款将退到您的账户";
    lab.numberOfLines=0;
    lab.textColor=LRRGBColor(215, 25, 36);
    lab.font=[UIFont systemFontOfSize:13];
    [view addSubview:lab];
    
    UIButton*jujueButton=[UIButton buttonWithType:UIButtonTypeCustom];
    jujueButton.frame=CGRectMake(0, view.mj_y+view.mj_h, width_screen/2-0.5, 50) ;
    jujueButton.backgroundColor=[UIColor orangeColor];
    [jujueButton setTitle:@"残忍拒绝" forState:0];
    [self.view addSubview:jujueButton];
 
    UIButton*tongyiButton=[UIButton buttonWithType:UIButtonTypeCustom];
    tongyiButton.frame=CGRectMake(width_screen/2+0.5, view.mj_y+view.mj_h, width_screen/2-0.5, 50) ;
    tongyiButton.backgroundColor=LRRGBColor(215, 25, 36);
    [tongyiButton setTitle:@"果断拒绝" forState:0];
    [self.view addSubview:tongyiButton];

}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
